<p class="developer">视频的编辑功能也以后再做。</p>

<?php
//print_r($album_array);
//exit;
?>

<div class="box">
    <div class="hd">视频分类管理 &darr;</div>
    <div class="bd">
        <table class="itbale">
            <tr>
                <td>数据库主键编号</td>
<!--                <td>视频封面</td>-->
                <td>视频分类名称</td>
                <td>视频分类介绍</td>
                <td>操作</td>
            </tr>
            <?php
            foreach ($album_array as $key => $val) {
                $del_url = site_url("admin/video_manag/del_album/{$val["id"]}");
                $base_url = base_url();
                $thum_url = $base_url . "/uploads/album/thum";
                echo "   
      <tr>
        <td>{$val["id"]}</td>
    
        <td>{$val["title"]}</td>
        <td>{$val["desc"]}</td>
        <td><a href=\"{$del_url}\" title=\"删除\">删除</a> | " . anchor('admin/video_manag/edit_videoAlbum/' . $val["id"], '编辑', 'class="edit"') . "</td>
      </tr>";
            }
            ?>

        </table>
    </div>
</div>    



<div class="box">
    <div class="hd">某个分类下的视频列表 (点击分类名称，查看和管理该分类下的视频) &darr;</div>

    <div class="catList">
<?php
foreach ($album_array as $key => $val) {
    $options[$val["id"]] = $val["title"];
    $url = site_url("admin/video_manag/index/{$val["id"]}");
    echo " <a href=\"{$url}\" title=\"{$val["title"]}\">{$val["title"]}</a> ";
}
?>
    </div>

    <div class="bd">
        
        <form action="<?php
        
        echo site_url("admin/video_manag/edit_vedio_bat");
        
        ?>" method="post">
        <div class="caozuo"><input type="hidden" value="admin/photo_manag" name="redirectURL">
            <input type="submit" value="确定执行" name="edit_photosSubmit"> </div>
        <table class="itbale">
            <tr class="t">
                <td>选择</td>
                <td>ID</td>
<!--                <td>视频缩略图</td>-->
                <td>视频名称</td>
                <td>所属分类</td>
                <td>视频简介</td>
                <td>视频url</td>
           <td>操作</td>
            </tr>

<?php
foreach ($photo_array as $key => $val) {
    $delvedio_url=site_url("admin/video_manag/del_video/{$val["id"]}");
    $select_heml = form_dropdown("album_id{$val["id"]}", $array_vedio_type, $val["album_id"]);
    echo "<tr >
<td><input type=\"checkbox\" class=\"photo_id\" value=\"{$val['id']}\" name=\"photo_id[]\"></td>
<td>{$val["id"]}</td>                
                <td><input name=\"title{$val["id"]}\" type=\"text\" value=\"{$val["title"]}\" /></td>
                <td>{$select_heml}</td>
                <td>
                <textarea name=\"desc{$val["id"]}\" cols=\"20\" rows=\"3\">{$val["desc"]}</textarea>
                
                </td>
                <td>{$val["path"]}</td>
              <td><a href=\"{$delvedio_url}\" title=\"删除\">删除</a> </td>
            </tr>";
}
?>

        </table></form>
    </div>
</div>
